<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>身份证审核详情</title>
    <link rel="stylesheet" href="${base}/layui/css/layui.css">
    <link rel="stylesheet" href="${base}/awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${base}/css/admin.css">
    <style>
    	.layui-bg-black{width: 200px;height: 136px;margin-right: 30px;float: left;text-align: center;font-size: 33px;color: #000000!important;padding-top: 30px;}
    	.hide {display: none;}
    	.checkbox{display: inline-block;}
    	.layui-form-item{font-size: 18px;}
    	.width100 {width: 100px;}
    	.discuss{ float: left;margin-left: 30px;padding-top: 6px;}
    	.discuss p{text-align: left; font-size: 13px;margin-top: 5px;padding-top: 2px;}
    	.discuss_img{ float: left;margin-left: 10px;margin-top: 5px;}
     	.img {vertical-align: top;} 
     	 .click{background-color: #c2c2c2;} 
    </style>
</head>
<body  class="layui-layout-body" style="overflow:scroll;">
<#include "/common/left.flt">	

<div class="layui-main" style="position: absolute;left: 205px;top: 20px; width: calc(100% - 210px);" >
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
  <legend>身份证审核详情</legend>
</fieldset>
<div class="layui-form"  style="padding-top:20px;">
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
    	${one.name?default('')}
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">身份证</label>
    <div class="layui-input-block">
    	${one.code?default('')}
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">正面</label>
    <div class="layui-input-block">
    	<img src="http://qiniu.static.50dufei.top/${one.id_img_1?default('')}?imageView2/2/w/600" /> 
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">反面</label>
    <div class="layui-input-block">
    	<img src="http://qiniu.static.50dufei.top/${one.id_img_2?default('')}?imageView2/2/w/600" /> 
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">手持身份证</label>
    <div class="layui-input-block">
    	<img src="http://qiniu.static.50dufei.top/${one.id_img_3?default('')}?imageView2/2/w/600" /> 
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-block">
    	<select id="status" name="status">
    		<option value="" >请选择审核状态</option>
    		<option  value="1">通过</option>
            <option  value="3" >不通过</option>
    	</select>
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">备注</label>
    <div class="layui-input-block">
    	<textarea class="form-control layui-textarea" id="remark" name="remark" rows="4" placeholder="审核不通过请说明原因"></textarea> 
    </div>
  </div>
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
	    <button class="layui-btn" id="save"><i class="fa fa-check"></i> 保存</button>	    
	</div>
  </div>
</div>
</body>
<script src="${base}/js/jquery-2.1.4.min.js" type="text/javascript"></script>
  <script src="${base}/js/jquery.form.js"></script>
<script src="${base}/layui/layui.all.js"></script>
<script src="${base}/laydate/laydate.js"></script>
<script type="text/javascript">
$("#save").click(function (){
	var status = $("#status").val();
	var remark = $("#remark").val();
	$.post("${base}/cert/save",
	   		{"id":${one.id},"status": status,"remark":remark },function(data){ 
	   			layer.alert(data);
	   		}
	 );	
	return;
});
</script>
</html>